<?php
   /*ELABORO: KARYNA ROSALES BOTELLO*/
   /*MODULO DE CAPTURA DATOS DEL SUSCRIPTOR*/
   INCLUDE "F_CONX.php";
   $V_DIV=$HTTP_POST_VARS["V_DIV"];
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
function valida(formulario)
	{
	  if (document.FORM.V_RESP.value=="")
	  {
	  	window.alert("PROPORCIONE EL NOMBRE DEL RESPONSABLE ...");
		return false;
	  }
	  else
	  {
         if (document.FORM.V_PW1.value=="" || document.FORM.V_PW1.value!=document.FORM.V_PW2.value)
         {
            window.alert("CAPTURA DE PASSWORD ERRONEO ...");
		    return false;
         }
         else
         {
	       document.FORM.action="S_SUSP.php";
		   return true;
         }
	  }
    }
</script>
<LINK rel="stylesheet" type="text/css" href="STYLES.css">
</head>
<body>
<?PHP
     $V_OUT="<BR><BR><BR>";
     $V_OUT.="<FORM ACTION ='' METHOD='POST' NAME='FORM' OnSubmit='return valida(this)'>
              <TABLE WIDTH='800' HEIGHT='400' BORDER='0' ALIGN='CENTER' >
              <TR><TD ALIGN='CENTER' VALIGN='BASELINE' CLASS='TIT' COLSPAN='2'>REGISTRE SUS DATOS</TD></TR>
              <TR><TD ALIGN='CENTER' VALIGN='BASELINE' CLASS='SUBTIT'> NOMBRE DEL RESPONSABLE:
                  <INPUT NAME='V_RESP' TYPE='TEXT'>
                  <TD WIDTH='295' BACKGROUND='imagenes/business.jpg' ROWSPAN='3'></TD>
              </TD></TR>
              <TR><TD ALIGN='CENTER' VALIGN='BASELINE' CLASS='SUBTIT'> PROPORCIONE UN PASSWORD
		          <INPUT NAME='V_PW1' TYPE='PASSWORD'>
              </TD></TR>
              <TR><TD ALIGN='CENTER' VALIGN='BASELINE' CLASS='SUBTIT'> CONFIRME SU PASSWORD
		          <INPUT NAME='V_PW2' TYPE='PASSWORD'>
              </TD></TR>";
     $V_OUT.="<TR><TD ALIGN='CENTER' VALIGN='BASELINE' COLSPAN='2'>
		          <INPUT NAME='BTN_SUSCRIBIR' TYPE='SUBMIT' VALUE='SUSCRIBIR...'>
              </TD></TR>
              <INPUT NAME='V_DIV' TYPE='HIDDEN' VALUE='$V_DIV'>";
     $V_OUT.="</TABLE></FORM>";
     ECHO $V_OUT;
?>
</body>
</html>
